import request from '@/utils/request'

export default {
  getList(params) {
    return request({
      url: '/sxUserCardRecord/',
      method: 'get',
      params
    })
  },

  get(params) {
    return request({
      url: '/sxUserCardRecord/' + params.orderId,
      method: 'get',
      params
    })
  },

  getPage(params) {
    return request({
      url: '/sxUserCardRecord/page',
      method: 'get',
      params
    })
  },

  update(params) {
    return request({
      url: '/sxUserCardRecord/update',
      method: 'post',
      params
    })
  },

  insert(params) {
    return request({
      url: '/sxUserCardRecord/insert',
      method: 'post',
      params
    })
  },

  remove(params) {
    return request({
      url: '/sxUserCardRecord/delete',
      method: 'post',
      params
    })
  },

  exportReport(params) {
    return request({
      url: '/sxUserCardRecord/export',
      method: 'post',
      params,
      responseType: 'arraybuffer'
    })
  }
}
